package com.zy.pay.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (表t_order_pay)ORM实体类
 *
 * @author ZY
 * @date 2021-04-12 19:02:14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_order_pay")
public class OrderPay implements Serializable {

    private static final long serialVersionUID = -55309824692905573L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单金额
     */
    private Double orderPrice;

    /**
     * 实际支付金额
     */
    private Double payAmount;

    /**
     * 付款者ID
     */
    private Integer userId;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}